package com.example.test.主方法运行测试;

public class 执行顺序 {
    static 执行顺序 static执行顺序 = new 执行顺序(888);

    static {
        System.out.println("one");
    }

    static 执行顺序 sss = new 执行顺序(999);
    {
        System.out.println("two");
    }

    public 执行顺序() {
        System.out.println("three");
    }

    public 执行顺序(int num) {
        System.out.println("four(" + num + ")");
    }

    public static void main(String[] args) {
        System.out.println("five");
        new 执行顺序();
        System.out.println("six");
        new 执行顺序(2);
    }
}
